ObjectDB Database Search

1-50 of 200 results

JPA Class Enhancer

The ObjectDB Enhancer is a post-compilation tool that improves performance by modifying the bytecode of compiled classes. Enhancement applies mainly to user-defined persistable classes ( entity ... . However, there is one case where enhancement is required. Non-persistable classes that directly access persistent fields

Post-compilation enhancement vs Automatic Run-time enhancement

on the fly runtime enhancement is applied only to entity classes, where post compilation ... enhancement and automatic run-time enhancement . Testing exactly where and when the results are different ... LAYER depending on the enhancement stragegy). Can you please explain how this could possibly

Cascading (persist) with a mix of enhanced and not enhanced entities

We find out that it is actual not possible to use enhanced and not enhanced entities together. Exist any limitations regarding the use of enhanced and non- enhanced entities? We work based feature and want to load other bundles as an artifact from the Nexus. These are always enhanced . To enhance

objectdb-2.6.9_02 (with "objectdb.temp.no-enhancement-crc-check") vs. generic classes with interfaces: detailed investigation

objectdb-2.6.9_02 (with "objectdb.temp.no- enhancement -crc-check" system property ... for " Enhancement of type ... is old and cannot be used" This report concerns investigation of issues ... script invoked using Clean and Build that enhances every entity class in the system. - Very important

Dependency from enhanced classes to the objectDB library

Hello, we have a Question to the dependency from enhanced classes (required for license ... & ObjectDB and to all domains, because there are the entities. Now we get an error when we have enhanced ... enhanced classes. We have an ANT script in “com.btc.ep.base.dal.impl” to enhance the classes. The log

[ODB1] Chapter 3 - Persistent Classes

-cp src test.X test.pc.* On the Fly JDO Enhancement Command line enhancement is useful for testing ... to a project that applies on the fly enhancement : package test; /** Additional main - On the Fly JDO Enhancer ... without implementing the PersistenceCapable interface, and have the JDO Enhancer add the interface

Possible cause for "Enhancement of type ... is old and cannot be used"

We get the following log: [2015-06-08 13:07:02 #1 type.user] Enhancement of type com.btc.ep ... .ScopeRequirementContainerImpl is not enhanced . [2015-06-08 13:07:02 #3 type.user] Enhancement of type com.btc.ep ... .RequirementReferenceImpl is not enhanced . We understand the reason of the messages #2 and #4 "Type ... 

UserException: Package com.example.model is not found by the enhancer

the enhancer It occurs on this line: com.objectdb. Enhancer . enhance ("com.example.model ... how the enhance () method looks up the model path since it will be inside the example.jar after building?   ThreaT Ashton Hogan It may be a class loader conflict, i.e. the Enhancer and your classes are loaded

enhancement issue

Hi, still struggling with the enhancement issue. So, this works fine in development: static void main ( String[] args ) {     com.objectdb. Enhancer . enhance ( "app.model ... : [ObjectDB 2.7.1_02] Package app.model is not found by the enhancer (error 108) com.objectdb.o

Step 7: Run the Spring Web App

; persistence.xml file - instead of RESOURCE_LOCAL you will have to specify  JTA . To enable on the fly automatic enhancement (weaving) in Tomcat it has to be run with ObjectDB as a Java agent ( javaagent:objectdb.jar). When using GlassFish - on the fly enhancement (weaving) is automatically enabled

Enhancer problem

During development, I have used the enhancer API in a static block in the code that creates the EntityManagerFactory, ie. com.objectdb. Enhancer . enhance ("com.fastmodel.fastplan.entities.*"); com.objectdb. Enhancer . enhance ("com.fastmodel.fastplan.entities.comm.*"); com.objectdb. Enhancer . enhance ("com

Custom Classloader: Issues with the Enhancer Agent

(); } } } This works great without the Enhancer Agent, but once the Agent is enabled it is causing issues and I ... this is because the Agent intercepts my call to defineClass(), makes the enhancement to the class and loads the modified ... seems to call back to my classloader (loadClass()/findClass()/...) as part of the enhancement process, resulting in a recursive

Request clarification of changes to accessor enhancement policy (non-getter prefix instead of getter suffix) AND annotations

were made to the way enhancement treats getters and setters (property accessors), namely there are no longer enhanced additional getters/setters, because the additional methods now use (since about version 2-6 ... for various tasks, including for diagnosing whether enhancement has indeed taken place, leading

ObjectDB with JRebel: copious 'Not Enhanced:' errors with EJBs

enhancer .agent] Not Enhanced : com/example/ejb/query/__EJB31_Generated__ExampleQuery__Intf__: com.objectdb ... .SCM.w(SCM.java:455) ... 76 more Severe: [2016-10-30 09:16:46 #6 enhancer .agent] I am using post-compile ObjectDB enhancement in an Ant script that targets folders with @Entity classes only.    

ObjectDB Enhancer Tool in Java 9

try to run com.objectdb. Enhancer from that module, but ObjectDB gives the error below.  My guess ... -Dobjectdb.conf=ObjectDb.conf --module-path com.objectdb.jar --module com.objectdb/com.objectdb. Enhancer ... ) at com.objectdb/com.objectdb.o.JEN. (JEN.java:67) at com.objectdb/com.objectdb. Enhancer .main( Enhancer

Failed to enhance dynamic type

Hi, We are trying to enhance a class with OSGI Weaver using the JEnhancer.THIS instance as a class ... of our custom interface and should of course, NOT be enhanced . Yet, we get an error due enhancing : Failed ... why he does even try to generate dynamic type?? Can he simply ignore such things and enhance

Enhancement of type is old and cannot be used

:   [2021-01-26 15:20:33 #22 type.user] Enhancement of type eu.extech.quant.listing.data ... :33 #23 type] Type eu.extech.quant.listing.data.ProductListingRequest is not enhanced . [2021-01-26 15:20:33 #24 type] Type eu.extech.quant.listing.data.ProductListingStateChangeList is not enhanced

Enhancer -s broken

Hi, after upgrading to ObjectDB 2.5.4_04 we noticed that the enhancer option -s is currently broken. According to your docs we've added the enhancer to our ant build: unfortunalety is is only enhancing ${bin.dir}/org/tinymediamanager/core/ and no sub packages/directories. With earlier versions (2

Issue with compile time enhancement

I have an entity library which I have integrated build time enhancement in.  The enhancer ... ) is listed as having been enhanced . I am running with ObjectDB in embedded mode via a reference ... This exception may be the result of partial enhancement . For example, enhancement of a super entity

Post-compile enhancement fails when static Log4j 2.5 based logger used in Entity

I doubt this is an ObjectDB- enhancer problem, I am however reporting it in case anybody ... extends Element { On post-compile enhancement I get this error (as reported in the odb log file ... .objectdb. Enhancer .main( Enhancer .java:33) Caused by: java.lang.LinkageError: loader constraint violation

Maven Enhancement with OSGi Plugins

Hello, I've an OSGi environment and try to enhance Classes with Maven as it is described in ... other plugins. Is there a way to include classes in enhancement process? Thanks for your help ... .objectdb.o.JEL.A(JEL.java:442) at com.objectdb.o.JEN.k(JEN.java:93) at com.objectdb. Enhancer .main( Enhancer

Enhancer failure: Failed to process class file of type

; at com.objectdb. Enhancer .main( Enhancer .java:33) Caused by: com.objectdb.o.UserException: Failed ... .2_02 and the following enhancement config in gradle works: task enhance ( type: JavaExec ) {   main = 'com.objectdb. Enhancer '   classpath = sourceSets.main.runtimeClasspath   args '-cp

Does run time enhancer due to GlassFish/Payara do anything that would affect loaded compile-time entity classes ?

ObjectDB support wrote elsewhere: ... you do not need the Enhancer agent, since you use build time ... to disable the enhancer agent ... Q: Does run time enhancer due to GlassFish/Payara do anything that would affect loaded compile-time enhanced entity classes (other than just logging, typically just

How to check if the classes were enhanced correctly with valid OEM license?

Hello, is there a way/tool how to check whether build classes were enhanced with valid OEM license? Scenario: 1) Build and enhance Java application with some Object DB license key. 2) Pick particular JAR containing enhanced classes from the build above. 3) Run some tool against picked JAR

How prevent post-compile enhancement of non entity classes

I have recently moved to post-compile enhancement (from automatic run-time enhancement ) using ... the enhancer on entity files. For full project build the following works, by grouping entities under clearly named packages: But the following for per-file post-compile enhancement also invokes

An ArrayIndexOutOfBoundsException with nested entities and enhanced entities

.8_06 All our entities are enhanced . There are nested entities in following hierarchy: @Entity ... a mismatching enhancement , but it could be anything. support Support Hello, First of all thank ... of the database). We see no connection between the database and the enhanced classes

Exception when querying Map property with @embedded & Enhancer enabled

Hi, I have the following test class that is failing when the enhancer is enabled, resulting in the error 'Failed to write the value of field field TestEmbeddableMap$MyAttributeItem.id using enhanced method.', if I disable the enhancement the test works as expected, and returns the expected

Invalid file type for enhancement (error 104)

Trying to run enhancement , I get:    [ObjectDB 2.5.5_05] Invalid file type for enhancement : /home/steve/java/spiffymap-svn/sealog-core/build/classes/com/spiffymap/sealog/model/Audit.java (error 104) com.objectdb.o.UserException: Invalid file type for enhancement : /home/steve/java

Measurement of the test coverage of enhanced classes

to our customers. Therefore we think we need to test the enhanced classes. But that distorts our test ... "coverage" of our tests? btc_es BTC EmbeddedSystems Enhancement adds code to persistent classes ... that is added by enhancement . A simple solution could be to check test coverage with classes that are not

OEM license, enhancer

for each customer system when we are using enhancer .  As we want to ship a standard database with the system which was created before having the OEM license and before adding enhancer ... that have been enhanced by the Enhancer in OEM mode (i.e. with an OEM activation key), your software can access

[ODB1] Chapter 2 - A Quick Tour

; On The Fly JDO Enhancement On the fly JDO enhancement is the easiest way to use the JDO ... explicitly, and a special tool, the JDO enhancer , adds the implementation automatically. The Person ... become persistent using the JDO enhancer . JDO Metadata Every persistent class must be declared as

Database Management Settings

, you should only activate ObjectDB on developer computers. Classes that are enhanced by the ObjectDB Enhancer with an OEM license are signed and excluded from evaluation restrictions. Therefore, when the ObjectDB runtime is bundled in a product that uses only signed, enhanced , persistable classes, activation by end users is unnecessary.

JPA Entity Fields

for detached entities (explained in Chapter 3 ) unless the entity class is enhanced (explained in Chapter 5

FROM clause (JPQL / Criteria API)

The FROM clause declares query identification variables for iterating over objects in the database. A query identification variable is similar to a variable in a Java enhanced for loop because both are used to iterate over objects. Range variables Range variables are query identification variables

ObjectDB 2.9 Developer's Guide

how to use the JPA Query Language (JPQL). Presents ObjectDB Tools: the Explorer, the Enhancer , the Doctor

Running JPA Queries

of a parameterized type by using an enhanced for loop: for (Country c : results) { System.out.println(c.getName

Enhancer option to enhance all persitable types

Hello, can you add an option to the Class Enhancer to enhance all persistable types and ignore the NON persistable types. Like the Load Time Enhancement . btc_es BTC EmbeddedSystems A new argument (undocumented yet) was added to the Enhancer in build 2.6.2_06: java -cp objectdb.jar com.objectdb

Enhanced classes problem

Hell, we have problem with the OEM enhancement licencing. When we used runtime licencing using machine activation code, everything works fine. But when we enhanced our classes with OEM licence ... of field field eu.ysoft.safeq.core.cache.entity.CacheableJobStat.jais using enhanced method at com

Tracking changes to new collections (in enhancement mode) after flush

;consistently? is it reproducible? Does it happen with enhanced classes or in reflection mode ... with enhanced classes, without enhanced classes all works correctly as expected currently we use ... BTC EmbeddedSystems It seems like a failure in automatic tracking of changes in enhanced classes

Enhancing a class causes it to not save changes.

So when we enhance the Account class, no changes are saved to it. When it is reflection mode ... that have not existed for ages.  In enhancement  mode, there are no exceptions. I can't figure ... models, the objectdb logs for both the enhanced and unenhanced versions, and the objectdb.conf

Enhancer option -s works not as expected

We found a bug in the enhancer with the option -s . Given structure: com |- btc |- |- base ... |- |- |- |- |- Entity2.class   ... com.objectdb. Enhancer -noaware -s com.btc.base.impl.* Entity1 and Entity2 enhanced as expected. ... com.objectdb. Enhancer -noaware -s com.btc.base.* Entity1

Unexpected exception when execute query without enhanced entities

ObjectDB 2.8.7.b08 Our entities are not enhanced and we execute a query "select max(uid) from ... an exception with a message like "the entities are not enhanced ..." instead of the UserException: Unexpected query token 'uid'. If the entities are enhanced then the query works without exception. btc

Step 3: Add a Context Listener Class

the EntityManagerFactory & Enhance : public void contextInitialized(ServletContextEvent e) { com.objectdb. Enhancer . enhance ("guest.*"); EntityManagerFactory emf = Persistence.createEntityManagerFactory("$objectdb ... the Enhancer to enhance the entity class, creates an EntityManagerFactory instance and stores it as

Application not starting after enhancement

I added the class enhancer to my build script and I get the expected output of a list with the enhanced classes. Now if I try to deploy my created application I get the following error: Caused by ... a @MappedSuperclass. Without the enhancement everything works fine. Regards Kevin Kevin Kevin Pfaff Enhancement

Enhancement Error: Unexpected constant pool entry tag: 19

Hi , I got this error when trying to enhance   Thanks --   bmpccdeMac-mini:CloudAI eko$ bash ~/lib/objectdb-2.8.4/bin/ enhancer .sh build/libs/asli-cloudai.jar [ObjectDB 2.8.4] Unexpected ... . Enhancer .main( Enhancer .java:33) eko EKO FAJAR Thank you for this report. Please try build 2.8.5_03

ObjectDB enhancement fails on "is" form for @Transient boolean isLoaded(), ok for "getter" form @Transient boolean getLoaded()

Element I encounter ObjectDB enhancement errors: private boolean loaded = false; @Transient @Override ... ) { this.loaded = loaded; } No matter whether using javaagent run-time enhancement or post-compile enhancement ... entity): INFO: [2014-11-23 16:54:03 #2 type] Type com.example.entity.Element is not enhanced

Remove of an entry from a @OneToMany collection is not possible if the enhancer is disabled

Hello! When the JPA entities are not enhanced the removal of an entry from a @OneToMany collection ... .getChildEntityContainer().remove("01"); does not work correctly with not enhanced JPA entities. package ... you for this report. It represents an issue with non enhanced classes, but it is not related to @OneToMany collection

Step 1: Create a Maven Web Project

.2 enhance process-classes java com.objectdb. Enhancer guest.Guest org.mortbay.jetty maven-jetty

Step 1: Create a Maven Web Project

;         enhance        process ... ;  com.objectdb. Enhancer              

[ODB1] Chapter 6 - Persistent Objects

enhancer . Non persistent classes that directly access persistent fields of other classes are referred to as persistence aware . Persistence aware classes must also be run through the JDO enhancer , which enhances them to include the code needed for transparent persistence. But, because these classes